<template>
	<view class="container">
	

	
			<view class="example">
				
				
				<!-- 展示不同的排列方式 -->
				<uni-forms >
					<uni-section title="请输入您需要反馈的问题和意见" subTitle="" type="line" padding>
						<uni-easyinput type="textarea" autoHeight v-model="feedback" placeholder="请输入内容"></uni-easyinput>
					</uni-section>
					<button type="primary" @click="submitFeedback()">提交反馈</button>
				</uni-forms>
			</view>
		

		
		
		
		
	</view>
</template>
<script>

	import http from '@/store/http.js'
	
	import md5 from 'js-md5';
	export default {
		computed:{
		
			
		},
		onLoad() {
			
		
		},
		data() {
			return {
				feedback:"",
			
			
			
			}
		},
	
		
		onReady() {
			
		},
		methods: {
			submitFeedback(){
				var data={};
				http.post("/api/userCenter/feedback",data,(data)=>{
					if(data.status){
						
						uni.showToast({
							title:"反馈成功",
							icon:'none'
						})
						setTimeout(() => {
							
							uni.switchTab({
								url:"/pages/user/userInfoAd"
							})
						}, 1000);
						
					}else{
						uni.showToast({
							title:data.msg,
							icon:'none'
						})
					}
					
				});
			},
		
		}
	}
</script>
<style lang="scss">

	.example {
		padding: 15px;
		background-color: #fff;
	}

	.segmented-control {
		margin-bottom: 15px;
	}

	.button-group {
		margin-top: 15px;
		display: flex;
		justify-content: space-around;
	}

	.form-item {
		display: flex;
		align-items: center;
	}

	.button {
		display: flex;
		align-items: center;
		height: 35px;
		margin-left: 10px;
	}
</style>